package com.dao;

import com.model.ReportStr;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;


@Repository
public interface ReportStrDao extends Base {

    ReportStr selectReportStrByPrimaryKey(Integer id);

    ReportStr selectFirstReportStrNoCompare();

    List<ReportStr> selectReportStrLimitExcludeSelf(@Param("start") int start, @Param("end") int end, @Param("pk") int pk);

    List<ReportStr> selectAllReportStrLimit(@Param("start") int start,@Param("limit") int limit);

    int updateReportStrHasCompareSetTrueByPk(int id);

    int updateReportStrSetHasCompareFalse();

    int countReportStr();
}
